widget: Stop setting root coords in events
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 May 2019 22:03:10 +0000 (22:03 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 31 May 2019 23:36:35 +0000 (23:36 +0000)
Nothing should use them anymore.

gtk/gtkwidget.c

index 9a4c31b7d4797ab76e3c6da821a51f1882f109f4..f2487b12018d469ae83b2915cfb87930aa962600 100644 (file)
@@ -2455,8 +2455,6 @@ _gtk_widget_emulate_press (GtkWidget      *widget,
       press = gdk_event_new (GDK_BUTTON_PRESS);
       press->any.surface = g_object_ref (event->any.surface);
       press->button.time = event->motion.time;
-      press->button.x_root = event->motion.x_root;
-      press->button.y_root = event->motion.y_root;
       press->button.state = event->motion.state;
 
       press->button.axes = g_memdup (event->motion.axes,
@@ -8315,8 +8313,6 @@ synth_crossing (GtkWidget       *widget,
   event->any.send_event = TRUE;
   event->crossing.child_surface = g_object_ref (surface);
   event->crossing.time = GDK_CURRENT_TIME;
-  event->crossing.x_root = 0;
-  event->crossing.y_root = 0;
   gdk_surface_get_device_position (surface,
                                    device,
                                    &event->crossing.x,